<template>
	<view class="main">
		<tou_hand1 handtitle='场地险凭证'></tou_hand1>
		<view class="show">
			<view class="one">
				<image src="https://qiniu.jxyutuo.com/yanqin/tabBarimg//cdx.png"></image>
				<view class="onefirst">保单号：{{item.insureOrder}}</view>
			</view>
			<view class="two">保险凭证</view>
			<view class="three">
				一、设备所属运营商：{{item.userId}} 
			</view>
			<view class="three">
				二、设备安装地址:{{item.projectName}}-{{item.areaName}}
			</view>
			<view class="three">
				三、保险期间:
				<view class="threetxt">
					自{{item.insureStartTime}}起,至{{item.insureEndTime}} 止
				</view>
			</view>
			<view class="three">
				四、标的信息：{{item.code}}
			</view>
			<view class="three">
				五、总保额： 人民币叁佰万元整(RMB3.000.000.00) 
			</view>
			<view class="three">
				六、险种限额信息：
				<view class="map">
					<view class="lone">
						<view class="loneshang">险别名称</view>
						<view class="lonexia">公众责任险<br/> (火灾、爆炸)</view>
					</view>
					<view class="ltwo">
						<view class="ltwoshang">保险金额/<br/>赔偿限额</view>
						<view class="ltwoxia">3,000,000.00 </view>
					</view>
					<view class="lthree">
						<view class="lthreeshang">赔偿项目</view>
						<view class="lthreexia">
							<view class="lthreexiatxt">累计赔偿限额</view>
							<view class="lthreexiatxt">每次事故赔偿限</view>
							<view class="lthreexiatxt">每次事故财产损失赔额</view>
							<view class="lthreexiatxt" style="border-bottom: 0upx;">每次事故人身伤亡赔额</view>
						</view>
					</view>
					<view class="lfour">
						<view class="lfourshang">限额</view>
						<view class="lfourxia">
							<view class="lfourxiatxt">3,000,000.00</view>
							<view class="lfourxiatxt">200,000.00</view>
							<view class="lfourxiatxt">100,000.00</view>
							<view class="lfourxiatxt" style="border-bottom: 0upx;">100,000.00</view>
						</view>
					</view>
				</view>
			</view>
			<view class="three">
				七、免赔说明： 每次事故绝对免赔额为人民币1000元或损失金额的10%，两者以高者为准。
			</view>
			<view class="three">
				八、付费约定：
				<view class="threetxt">
					1、投保人应按约定交付保险费。
				</view>
				<view class="threetxt">
					2、约定一次性交付保险费的，投保人在约定交费日后交付保险费的，保险人对交费之前发生的保险事故不承担保险责任。
				</view>
			</view>
			<view class="three">
				九、明示告知：
				<view class="threetxt">
					1、请详细审阅投保须知、内容、相关条款，特别是保险责任、责任免除、特别约定和合同解除等事宜。
				</view>
				<view class="threetxt">
					2、收到正式保险单后请详细审阅保单上各项内容，如有错漏请及时书面 通知更正。
				</view>
				<view class="threetxt">
					3、根据保险法第十六条投保人故意或者因重大过失未履行如实告知义务的，足以影响保险人决定是否同意承保或者提高保险费率的，
					保险人有权解除合同。投保人故意不履行如实告知义务的，保险人对于合同解除前发生的保险事故，不承担赔偿或者给付保险金的责任，
					并不退还保险费。投保人因重大过失未履行如实告知义务，对保险事故的发生有严重影响的，保险人对于合同解除前发生的保险事故，
					不承担赔偿或者给付保险金的责任，但退还保险费。
				</view>
				<view class="threetxt">
					4、保险期间以保单载明的起止期间为准，本保险合同自保险人同意并签发保险单且投保人已缴付保险费开始生效。
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	import tou_hand1 from '../../components/tou_hand1/tou_hand1.vue'
	
	export default {
		components: {tou_hand1},
		mounted() {
			
		},

		data() {
			return {
				item:{}
			}
		},
		onLoad(option) {
			this.item=option
			this.item.insureStartTime=this.timestr(option.insureStartTime)
			this.item.insureEndTime=this.timestr(option.insureEndTime)
			console.log('777',option)
		},
		methods: {
			timestr(dateStr){
				const date = new Date(Date.parse(dateStr));
				const year = date.getFullYear();
				const month = date.getMonth() + 1;
				const day = date.getDate();
				const hour = date.getHours();
				const minute = date.getMinutes();
				const second = date.getSeconds();
				const formatStr = `${year}年${month}月${day}日${hour}时${minute}分${second}秒`;
				return formatStr
			}
			
		}
	}
</script>

<style lang="scss" scoped>
	.main {
		width: 100%;
		.show{
			width: 100%;
			box-sizing: border-box;
			padding: 9upx 17upx;
			.one{
				width: 100%;
				box-sizing: border-box;
				display: flex;
				align-items: center;
				justify-content: space-between;
				padding-top: 14upx;
				image{
					width: 279upx;
					height: 26upx;
				}
				font-size: 22upx;
				font-family: Microsoft YaHei-Regular, Microsoft YaHei;
				font-weight: 400;
				color: #3D3D3D;
			}
			.two{
				width: 100%;
				text-align: center;
				font-size: 26upx;
				font-family: Microsoft YaHei-Bold, Microsoft YaHei;
				font-weight: 700;
				color: #3D3D3D;
				padding-top: 20upx;
			}
			.three{
				width: 100%;
				box-sizing: border-box;
				padding-top: 20upx;
				font-size: 24upx;
				font-family: Microsoft YaHei-Bold, Microsoft YaHei;
				font-weight: 700;
				color: #3D3D3D;
				line-height: 38upx;
				.threetxt{
					font-size: 22upx;
					font-family: Microsoft YaHei-Regular, Microsoft YaHei;
					font-weight: 400;
					color: #3D3D3D;
					line-height: 34upx;
				}
				.map{
					width: 100%;
					box-sizing: border-box;
					display: flex;
					border: 1upx solid #999999;
					font-size: 20upx;
					font-family: Microsoft YaHei-Regular, Microsoft YaHei;
					font-weight: 700;
					color: #3D3D3D;
					.lone{
						width:21%;
						.loneshang{
							width: 100%;
							height: 67upx;
							border-right:1upx solid #999999;
							border-bottom:1upx solid #999999;
							text-align: center;
							display: flex;
							align-items: center;
							justify-content: center;
						}
						.lonexia{
							width: 100%;
							height: 160upx;
							border-right:1upx solid #999999;
							text-align: center;
							display: flex;
							align-items: center;
							justify-content: center;
						}
					}
					.ltwo{
						width: 22%;
						.ltwoshang{
							width: 100%;
							height: 67upx;
							border-right:1upx solid #999999;
							border-bottom:1upx solid #999999;
							text-align: center;
							display: flex;
							align-items: center;
							justify-content: center;
						}
						.ltwoxia{
							width: 100%;
							height: 160upx;
							border-right:1upx solid #999999;
							text-align: center;
							display: flex;
							align-items: center;
							justify-content: center;
						}
					}
					.lthree{
						width: 36%;
						.lthreeshang{
							width: 100%;
							height: 67upx;
							border-right:1upx solid #999999;
							border-bottom:1upx solid #999999;
							text-align: center;
							display: flex;
							align-items: center;
							justify-content: center;
						}
						.lthreexia{
							width: 100%;
							height: 160upx;
							border-right:1upx solid #999999;
							.lthreexiatxt{
								width: 100%;
								height: 24%;
								border-bottom:1upx solid #999999;
								text-align: center;
								display: flex;
								align-items: center;
								justify-content: center;
							}
						}
					}
					.lfour{
						width: 21%;
						.lfourshang{
							width: 100%;
							height: 67upx;
							border-bottom:1upx solid #999999;
							text-align: center;
							display: flex;
							align-items: center;
							justify-content: center;
						}
						.lfourxia{
							width: 100%;
							height: 160upx;
							.lfourxiatxt{
								width: 100%;
								height: 24%;
								border-bottom:1upx solid #999999;
								text-align: center;
								display: flex;
								align-items: center;
								justify-content: center;
							}
						}
					}
				}
			}
		}
	}
</style>
